package br.com.wagnerfull.precoimovel.cadastro;

import java.util.HashMap;
import java.util.Map;

import android.content.ContentValues;
import br.com.wagnerfull.precoimovel.dao.EntidadeMobileEntity;

public class Incc extends EntidadeMobileEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 394983421556346821L;

	private Integer id;
	private Long competencia;
	private Long mes;
	private Long ano;
	private Float indice;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Long getMes() {
		return mes;
	}

	public void setMes(Long mes) {
		this.mes = mes;
	}

	public Long getAno() {
		return ano;
	}

	public void setAno(Long ano) {
		this.ano = ano;
	}

	public Long getCompetencia() {
		return competencia;
	}

	public void setCompetencia(Long competencia) {
		this.competencia = competencia;
	}

	public Float getIndice() {
		return indice;
	}

	public void setIndice(Float indice) {
		this.indice = indice;
	}

	@Override
	public Map<String, String> getMapeamento() {
		Map<String, String> retorno = new HashMap<String, String>();
		retorno.put("id", "id");
		retorno.put("competencia", "competencia");
		retorno.put("mes", "mes");
		retorno.put("ano", "ano");
		retorno.put("indice", "indice");
		return retorno;
	}

	@Override
	public ContentValues getContentValues() {
		ContentValues contentValues = new ContentValues();
		contentValues.put("id", this.id);
		contentValues.put("competencia", this.competencia);
		contentValues.put("mes", this.mes);
		contentValues.put("ano", this.ano);
		contentValues.put("indice", this.indice);
		return contentValues;
	}

	public Incc(Long competencia, Float indice) {
		this.competencia = competencia;
		this.indice = indice;
	}

	public Incc(Long competencia, Long mes, Long ano, Float indice) {
		this.competencia = competencia;
		this.indice = indice;
		this.mes = mes;
		this.ano = ano;
	}

	public Incc() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "incc";
	}

}
